package com.webcash.CNBoard.Repository;

import java.util.List;
import com.webcash.CNBoard.Model.Work;
import com.webcash.CNBoard.Model.WorkSearch;

public interface WorkRepository {

	List<Work> selectWorkListByProjectNo(int projectNo, int pageNum);
	List<Work> selectNewAllWorksById(String id);
	List<Work> selectProgressAllWorkListById(String id);
	Work selectWorkByWorkNo(int workNo);
	void insertIntoWork(Work work);
	List<Work> selectAllWorkListById(String id);
	void updateSetWork(Work work);
	int selectLastWorkNo();
	int selectWorkListCountByProjectNo(int projectNo);
	List<Work> selectWorkListByProjectNo(int projectNo);
	int selectWorkListCountByProjectNoAndWorkSearch(int projectNo,
			WorkSearch search);
	List<Work> selectWorkListByProjectNoAndWorkSearch(int projectNo,
			WorkSearch search, int pageNum);
	void deleteWorkByWorkNo(int workNo);
	List<Work> selectWorkListByProjectNoAndEmpNo(int projectNo, String id);

}
